import {request} from '@/common/js/request.js'

// 手机号 + 密码登陆
export function login(mobile, password) {
  return request({
    url: '/app-api/member/auth/login',
    method: 'post',
    data: {
		mobile, password
	}
  })
}
// 更新token
export function updateToken(data) {
  return request({
    url: '/app-api/member/auth/refresh-token?refreshToken='+data,
    method: 'post'
  })
}

// 退出登录
export function loginOut() {
  return request({
    url: '/app-api/member/auth/logout',
    method: 'post'
  })
}
